import {requestResponse} from '../../../config/axios.conf'
// import {serBaseUrl} from '../../../config/server.url.conf'
import {ciipSerUrl} from '~/../config/server.url.conf'

// 服务大厅列表
export const getList = (json:any) => requestResponse('get', '/anon/supplyservice/searchSupplyService', json)
// 服务大厅推荐详情
export const getListDetail = (json:any) => requestResponse('get', '/anon/supplyservice/other', json)
// 服务大厅数据详情
export const getLifwDetail = (json:any) => requestResponse('get', '/anon/supplyservice/info', json)
// 服务详情页评价
export const getTopicPageList = (json:any) => requestResponse('get', '/anon/evaluationRecord/getTopicPageList', json)
// 需求大厅列表
export const getxqList = (json: any) => requestResponse('get', '/anon/protalNeeds/pageList', json)

export const getSuppyPageList = (json: any) => requestResponse('get', '/anon/protalNeeds/getSuppyPageList', json)

export const detailxqList = (json: any) => requestResponse('get', '/anon/protalNeeds/detail', json)
// 相似需求
export const getOtherDemandNeeds = (json: any) => requestResponse('get', '/anon/protalNeeds/getOtherDemandNeeds', json)
// 下载
export const downloadResource = (json: any) => requestResponse('get', '/anon/marketFileResourceApi/downloadResource', json)

export const getFrinedLink = () => requestResponse('get', ciipSerUrl + '/anon/getAllFriendShipLinkList', {friendshipServiceKey: 'CIIP', belongLanguage: 'CHINESE', pageNumber: 1, pageSize: 15}, true)
